package cn.wolfcode.qo;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class QueryObject {

    //当前页,初始为1
    private int currentPage=1;
    //每页显示条数,初始为5
    private int pageSize=5;

    public int getStart(){
        return (currentPage-1)*pageSize;
    }

}
